//package com.twp.auth.repository.auth;
//
//
//import com.twp.auth.domain.authority.RoleMenu;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
//import org.springframework.data.jpa.repository.Modifying;
//import org.springframework.data.jpa.repository.Query;
//import org.springframework.data.repository.query.Param;
//import org.springframework.stereotype.Repository;
//
//import java.util.List;
//
//@Repository
//public interface RoleMenuRepository extends JpaRepository<RoleMenu, Integer>, JpaSpecificationExecutor<RoleMenu> {
//
//
////    @Query(value = "select c.id,c.name,c.code,c.router,c.icon,c.bpid,c.mpid,c.menuOrder,c.status,c.updateTime,c.updateUser from twp_role a , twp_role_menu b ,twp_menu c where a.id=b.roleId and a.id=:roleId and b.menuId = c.id", nativeQuery = true)
////    List<Object[]> queryRoleBindMenusByRoleId(@Param("roleId") int roleId);
////
////    @Modifying
////    @Query(value = "delete from RoleMenu c where c.roleId = ?1")
////    int deleteByRoleId(int roleId);
////
////    List<RoleMenu> findByRoleId(int roleId);
////
////    @Modifying
////    @Query(value = "delete from RoleMenu c where c.menuId = ?1 and c.roleId = ?2")
////    void deleteByMenuIdAndRoleId(Integer menuId, Integer roleId);
//}